package game;

import game.scene.SceneTitle;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import ankh.Ankh;

public class Game extends Activity
{
	
	protected Ankh _ankh;
	
	public Game()
	{
		super();
		_ankh = new Ankh(this);
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		_ankh.onCreate(savedInstanceState);
		
		setContentView(_ankh.getGraphics().getGLSurfaceView());
	}
	
	@Override
	protected void onStart()
	{
		super.onStart();
		_ankh.onStart();
		
		_ankh.getScene().setCurrent(new SceneTitle());
	}
	
	@Override
	protected void onRestart()
	{
		super.onRestart();
		_ankh.onRestart();
	}
	
	@Override
	protected void onResume()
	{
		super.onResume();
		_ankh.onResume();
	}
	
	@Override
	protected void onPause()
	{
		super.onPause();
		_ankh.onPause();
	}
	
	@Override
	protected void onStop()
	{
		super.onStop();
		_ankh.onStop();
	}
	
	@Override
	protected void onDestroy()
	{
		super.onDestroy();
		_ankh.onDestroy();
	}
	
}